﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WcfService1
{
   public class Service1 : IService1
   {
      public IList<Person> GetPersonList(int count)
      {
         var list = new List<Person>();
         Random rnd = new Random();

         for (int i = 0; i < count; i++)
         {
            list.Add(new Person
            {
               Height = 50 + 20 * rnd.NextDouble(),
               Age = rnd.Next(25, 70),
               Name = String.Format("Joe-{0}", i)
            });
         }

         return list;
      }

   }
}
